import request from '@/config/axios'

// 项目管理 API
export const StatisticsApi = {

  // 获取项目统计
  getProjectSummary: async () => {
    return await request.get({ url: '/project/statistics/project-summary' })
  },

  // 获取条形图统计数据
  getProjectStackedLine: async (projectId: number) => {
    return await request.get({ url: '/project/statistics/project-stacked-line?projectId=' + projectId })
  },

  // 获取项目柱状图统计数据
  getProjectBarEcharts: async () => {
    return await request.get({ url: '/project/statistics/project-barEcharts' })
  },

  // 获取项目分析数据
  getProjectAnalyse: async (params: any) => {
    return await request.get({
      url: '/project/statistics/analyse',
      params
    })
  }
}
